var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    newsId : mongoose.Schema.ObjectId,
    title  : String,
    content: String,
    autor:String,
    releasetime:Date,
    keyword:String
 });
schema.plugin(mongoosePaginate);

module.exports = mongoose.model('News',  schema);  // Model.paginate()